package com.uflo.test.model;

import java.util.Collection;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="BAOXIAO")
public class BaoXiao {

	@Id
	@Column(name="ID_", length=60)
	private String id;
	@Column(name="NAME_", length=60)
	private String name;
	@Column(name="DESC_", length=60)
	private String desc;
	@Column(name="TYPE_", length=60)
	private String type;
	@Column(name="STATE_", length=15)
	@Enumerated(EnumType.STRING)
	private State state;
	@Transient
	private  Collection<BaoxiaoItem> items;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public State getState() {
		return state;
	}
	public void setState(State state) {
		this.state = state;
	}
	public Collection<BaoxiaoItem> getItems() {
		return items;
	}
	public void setItems(Collection<BaoxiaoItem> items) {
		this.items = items;
	}
	
}
